package com.zby.vo;

import com.zby.model.enums.StatusEnum;
import com.zby.model.pojo.Article;
import com.zby.model.pojo.BasePojo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.autotable.annotation.AutoColumn;
import org.dromara.autotable.annotation.Index;
import org.dromara.autotable.annotation.mysql.MysqlTypeConstant;

/**
 * @author wuyanzhu
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Schema(description = "文章视图")
public class ArticleVo extends BasePojo {
    @Schema(description = "作者名")
    private String authorName;
    @Schema(description = "文章标题")

    private String title;

    @Schema(description = "文章内容")
    private String content;

    @Schema(description = "文章摘要")
    private String summary;

    @Schema(description = "文章封面")
    private String coverImage;

    @Schema(description = "文章作者id")
    private Integer userId;

    @Schema(description = "文章分类id")
    private Integer categoryId;

    @Schema(description = "文章状态")
    private StatusEnum status;

    @Schema(description = "文章点赞数")
    private Integer viewCount;
    @Schema(description = "文章观看数")
    private Integer likeCount;
}
